from hero_factory import HeroFactory

if __name__ == '__main__':
    hero_factory = HeroFactory()
    police = hero_factory.create_hero('police')
    timo = hero_factory.create_hero('timo')

    # police实例
    police.fight(timo.hp, timo.power)

    # timo实例
    timo.fight(police.hp, police.power)